package com.play.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.play.dto.PrescriptionDTO;
import com.play.entity.Prescription;

public interface PrescriptionMapper {
	
	List<PrescriptionDTO> tst();
	
	/**
	 * 根据名称查询
	 * @param name
	 * @return
	 */
	Prescription selectPrescriptionByName(@Param("name")String name);
	
	/**
	 * 查询列表
	 * @param name
	 * @param description
	 * @return
	 */
	List<Prescription> selectPrescriptionList(@Param("name")String name, @Param("description")String description);
	
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prescription
     *
     * @mbg.generated Fri May 10 15:57:25 CST 2024
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prescription
     *
     * @mbg.generated Fri May 10 15:57:25 CST 2024
     */
    int insert(Prescription row);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prescription
     *
     * @mbg.generated Fri May 10 15:57:25 CST 2024
     */
    int insertSelective(Prescription row);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prescription
     *
     * @mbg.generated Fri May 10 15:57:25 CST 2024
     */
    Prescription selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prescription
     *
     * @mbg.generated Fri May 10 15:57:25 CST 2024
     */
    int updateByPrimaryKeySelective(Prescription row);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prescription
     *
     * @mbg.generated Fri May 10 15:57:25 CST 2024
     */
    int updateByPrimaryKey(Prescription row);
}